﻿namespace AllBots.IoC
{
    using BotModels;
    using Ninject;

    public static class IoCContainer
    {
        private static IKernel kernel = new StandardKernel();

        public static void Initialize()
        {
            kernel.Bind<ILibraryRepository>().To<LibraryRepository>();
        }

        public static T Get<T>()
        {
            return kernel.Get<T>();
        }
    }
}
